package com.ccit.paas.vo;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import java.io.Serializable;


/**
 * 响应前端结果通用封装类
 *
 * @author: chinacoalit.com
 * @date 2024/1/9 15:58
 * @version: v1.0 初始化
 */

@Data
public class ResponseVO<T>  implements Serializable {

    private Integer code;

    private T data;

    private String msg;

    public ResponseVO(){

    }

    public ResponseVO(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public ResponseVO(Integer code, String msg, T data){
        this.code = code;
        this.msg = msg;
        this.data = data;
    }


}
